package org.liuyunfeng.infrastructure;

import feign.Request;
import feign.RetryableException;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2022-03-15 15:33
 **/
@Configuration(proxyBeanMethods = false)
public class CloudConfiguration {

//    @Bean
//    public Retryer cloudRetryer() {
//        return new CloudRetryer();
//    }

//    @Bean
//    public Request.Options cloudOptions() {
//        return new Request.Options(999, 999);
//    }


//    public static class CloudRetryer implements Retryer {
//
//        @Override
//        public void continueOrPropagate(RetryableException e) {
//            throw e;
//        }
//
//        @Override
//        public Retryer clone() {
//            return this;
//        }
//    }
}

    